/*
package com.mms.utsc.smartnet;

import java.util.HashMap;
import java.util.Map;

import android.app.Activity;
import android.widget.Toast;

public class ListViewMenuMap {

	private Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
	private Map<String, Integer> imageMap = new HashMap<String, Integer>();
	private String[][] rawMap;

	public ListViewMenuMap(Activity parentActivity, String[][] rawMap) {
		this.rawMap = rawMap;
		// [0] is the text displayed on the menu
		// [1] is activity class name
		// [2] is the image displayed on the menu
		try {
			for (int classIndex = 0; classIndex < rawMap.length; classIndex++) {
				try {
					classMap.put(rawMap[classIndex][0], Class.forName(VarHolder.getPackageName() + rawMap[classIndex][1]));
				} catch (ClassNotFoundException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
					Toast.makeText(parentActivity.getApplicationContext(), "Error in ListViewMenuMap class", Toast.LENGTH_SHORT);
				}
				imageMap.put(rawMap[classIndex][0], Integer.parseInt(rawMap[classIndex][2]));
			}
		} catch (NumberFormatException e) {
			Toast.makeText(parentActivity.getApplicationContext(), "Error in ListViewMenuMap class", Toast.LENGTH_SHORT);
		}
	}

	Class<?> getActivityClass(String key) {
		return this.classMap.get(key);
	}
	
	int getImageResourceID(int position){
		return this.imageMap.get(this.rawMap[position][0]);
	}
	
	String getTextFromPosition(int position){
		return this.rawMap[position][0];
	}
	
	int getCount(){
		return this.rawMap.length;
	}
	
}
*/